import requestBase from "./requestBase";

class Request extends requestBase {
  constructor(config = {}) {
    super(config);
  }

  responseInterceptors() {
    this.$httpInstance.interceptors.response.use(
      res => {
        return res;
      },
      error => {
        return Promise.reject(error.message);
      }
    );
  }

  get(url, params) {
    return super.get(url, params);
  }

  post(url, params) {
    return super.post(url, params);
  }
}

export default Request;
